import { defineStore } from 'pinia';
import { aiChat } from '@/services/apis';

export const useAiChat = defineStore('aiChat', {
    state: () => ({
        wishList: []
    }),
    actions: {
        async sync(params: any) {
            try {
                return await aiChat.sync(params);
            }
            catch (error) {
                return '服务器错误，请稍候重试'
            }
        },
    }
})